import React, { Component } from "react";
import  {Switch} from "react-router-dom"
import RouteWithSubRoutes from  "../router/RouteWithSubRoutes"

export default class Wode extends Component {
  render() {
    return (
      <div>
        Wode
        <div>
          <a href="#/wode/login">登录</a>
          <a href="#/wode/register">注册</a>
        </div>
        <Switch>
        {this.props.list.map((route, i) => (
          <RouteWithSubRoutes key={i} {...route} />
        ))}
      </Switch>
      </div>
    );
  }
}
